package com.example.demo.controller;

import com.example.demo.aspect.MyAspect;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/test")
@RestController
public class UserController {           //统一异常处理
    @RequestMapping("/u1")
    public String t1(){
        return "1";
    }



    @MyAspect
    @RequestMapping("/u3")
    public String u3(){
        return "u3";
    }
}